@layout("/common/_container.html"){

<div class="form-horizontal" id="codeInfoForm">
<div class="row">
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>代码生成</h5>
			</div>
			<div class="ibox-content">
				<div class="form-horizontal">
					<div class="form-group">
						<label class="col-sm-2 control-label">表名</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" name="tableName" id="tableName">
							<span class="help-block m-b-none">例如:sys_system</span>
						
						</div>
					</div>

					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-2">
							<button id="showInfo" class="btn btn-primary" onclick="Code.showtables()">预览代码</button>
							<button id="save" class="btn btn-primary" onclick="Code.generate()">代码生成</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
<div id="detail">
<div class="form-horizontal" id="codeInfoDetailForm">
<div class="row">
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>基本配置</h5>
			</div>
			<div class="ibox-content">
				<div class="form-horizontal">
					<table class="table">
						<tbody>
							<tr>
								<td width="10%">路径</td>
								<td><input class="form-control" placeholder="路径"
									type="text" name="path" id="path" value="d:/generate" />
								</td>
								<td width="10%">页面路径</td>
								<td width="15%"><input class="form-control" placeholder="页面路径"
									type="text" name="pagepath" id="pagepath" value="/system/code/" /></td>
								<td width="5%">js路径</td>
								<td><input class="form-control" placeholder="js路径"
									type="text" name="jspath" id="jspath" value="/system/code/" /></td>
								<td width="5%">页面名称</td>
								<td width="15%"><input class="form-control" placeholder="名称"
									type="text" name="pagename" id="pagename" value="code" /></td>
							</tr>
							<tr>
								<td>bean包名</td>
								<td><input class="form-control" placeholder="bean包名"
									type="text" name="beanPackageName" id="beanPackageName"
									value="com.ea.modular.model" data-bv-notempty="true"
									data-bv-notempty-message="bean包名 不能为空"></td>
								<td>bean类名</td>
								<td><input class="form-control" placeholder="bean类名"
									type="text" name="beanName" id="beanName" value="BeanTest"
									data-bv-notempty="true" data-bv-notempty-message="bean类名 不能为空">
								</td>
								<td>dao包名</td>
								<td><input class="form-control" placeholder="dao包名"
									type="text" name="daoPackageName" id="daoPackageName"
									value="com.ea.modular.dao" data-bv-notempty="true"
									data-bv-notempty-message="dao包名 不能为空"></td>
								<td>dao类名</td>
								<td><input class="form-control" placeholder="dao类名"
									type="text" name="daoName" id="daoName" value="BeanTestDao"
									data-bv-notempty="true" data-bv-notempty-message="dao类名 不能为空">
								</td>
							</tr>
							<tr>
								<td>controller包名</td>
								<td><input class="form-control" placeholder="controller包名"
									type="text" name="controllerPkgName" id="controllerPkgName"
									value="com.ea.modular.controller" data-bv-notempty="true"
									data-bv-notempty-message="controller包名 不能为空"></td>
								<td>controller类名</td>
								<td><input class="form-control" placeholder="controller类名"
									type="text" name="controllerName" id="controllerName"
									value="ControllerTest" data-bv-notempty="true"
									data-bv-notempty-message="controller类名 不能为空"></td>
								<td>service包名</td>
								<td><input class="form-control" placeholder="service包名"
									type="text" name="servicePkgName" id="servicePkgName"
									value="com.ea.modular.service" data-bv-notempty="true"
									data-bv-notempty-message="service包名 不能为空"></td>
								<td>service类名</td>
								<td><input class="form-control" placeholder="service类名"
									type="text" name="serviceName" id="serviceName"
									value="ServiceTest" data-bv-notempty="true"
									data-bv-notempty-message="service类名 不能为空"></td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
</div>


<div class="row">
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>字段详情</h5>
			</div>
			<div class="ibox-content">
				<div class="form-horizontal">

					<table class="table">
						<thead>
							<tr>
								<th>表字段名</th>
								<th>表类型</th>
								<th>字段描述</th>
								<th>java字段名</th>
								<th>java字段类型</th>
								<th>默认值</th>
							</tr>
						</thead>
						<tbody id="beanFields">
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
<script src="/modular/system/code/code.js"></script>
@}
